﻿using System;
using Autodesk.Revit.DB;

namespace RegionSplittor.Utils
{
	internal class UtilityTools
	{
		public static string PointString(XYZ p)
		{
			return string.Format("({0},{1},{2})", UtilityTools.RealString(p.X), UtilityTools.RealString(p.Y), UtilityTools.RealString(p.Z));
		}

		public static string RealString(double a)
		{
			return a.ToString("0.##");
		}
	}
}
